<?php

namespace App\Transformers;

use App\Models\MobileDevice;

class MobileDeviceTransformer extends BaseTransformer
{
    public function transform(MobileDevice $model)
    {
        return [
            'id' => $model->id,
            'devices_token' => $model->devices_token,
            'devices_sys' => $model->devices_sys,
            'language' => $model->language,
            'exchange_rate_id' => $model->exchange_rate_id,
            'exchange_rate' => $model->exchange->exchange_rate,
            'created_at' => $model->created_at->toDateTimeString(),
        ];
    }
}
